import Home from './Home'
import News from './News'
import NewsHome from './NewsHome'
import NewsSearch from './NewsSearch'
import NewsDetail from './NewsDetail'

const router = [
    { path: '/', exact: true, name: 'home', component: Home },
    {
        path: '/news', name: 'news', component: News,
        children: [
            { path: '', exact: true, name: 'newsHome', component: NewsHome },
            { path: '/detail', exact: true, name: 'newsDetail', component: NewsDetail },
            { path: '/search', exact: true, name: 'newsSearch', component: NewsSearch },
        ]
    }
]

export default router